﻿#ifndef ESP32_H
#define ESP32_H
#include <QThread>
#include <QDebug>
#include <QLabel>
#include <QUdpSocket>
class esp32 : public QThread
{
    Q_OBJECT
protected:
  //线程退出的标识量
  volatile bool m_stop;
    QHostAddress esp32host;
  void run();
public:
  explicit esp32(QObject *parent = 0);
  QUdpSocket* udp;
  void setUdpHost(QHostAddress host);
  //线程退出的接口函数，用户使用
  void stop();
signals:
    void isDone();  //处理完成信号

signals:

public slots:
};

#endif // ESP32_H
